﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial class qgzx_recruit_notice
    {


        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_recruit_notice ToPOCO()
        {
            qgzx_recruit_notice poco = new qgzx_recruit_notice()
            {
                Id = this.Id,
                Period = this.Period,
                RecSubject = this.RecSubject,
                RecTime = this.RecTime,
                RecAddress = this.RecAddress,
                IsOpen = this.IsOpen,        
            };
            return poco;
        }
        #endregion
        
        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Recruitment ToViewModel()
        {
            ViewModel.Recruitment poco = new ViewModel.Recruitment()
            {
                Id = this.Id,
                Period = this.Period,
                RecSubject = this.RecSubject,
                RecTime = this.RecTime,
                RecAddress = this.RecAddress,
                IsOpen = this.IsOpen,
               

            };
            return poco;
        }
        #endregion
    }
}
